require File.join(File.dirname(__FILE__), "lockdown", "controller")
require File.join(File.dirname(__FILE__), "lockdown", "model")
require File.join(File.dirname(__FILE__), "lockdown", "view")
require File.join(File.dirname(__FILE__), "lockdown", "controller_inspector")
require File.join(File.dirname(__FILE__), "lockdown", "class_extensions")

require File.join(File.dirname(__FILE__), "stonean", "mysql_utils")

module Lockdown 
  class << self
    def format_controller_action(url)
      parts = url.split("/").delete_if{|p| p.to_i > 0 || p.length == 0}
      parts.join("/")
    end
      
    def format_controller(ctr)
      parts = ctr.split("/")
      parts.delete_if{|p| p.length == 0}.join("/")
    end
  end #Lockdown class block
end

  
